package swing.admin.views;

import swing.admin.common.BaseFrame;
import swing.admin.views.aside.AdminAside;
import swing.admin.views.main.AdminMain;

import java.awt.*;

public class AdminFrame extends BaseFrame {
    public AdminFrame() throws HeadlessException {
        initLayout();
    }


    private void initLayout() {
        CardLayout layout = new CardLayout();
        AdminMain main = new AdminMain(layout);
        AdminAside aside = new AdminAside(main);

        add(aside, BorderLayout.WEST);
        add(main, BorderLayout.CENTER);
    }
}
